//
//  SocketTelecom.h
//  ZZChatiPhone
//
//  Created by zzsoft on 16/1/5.
//  Copyright © 2016年 zzsoft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"
#import "common.h"
#import "Tooler.h"
typedef void(^isConnectBlock)(BOOL isConnected,NSError *error);
typedef void(^messageBlock)(NSDictionary *message);
@interface SocketTelecom : NSObject
@property (nonatomic,copy) void (^isConnectBlock)(BOOL isConnected,NSError *error);
@property (nonatomic,copy) void (^messageBlock)(NSDictionary *message);
@property(nonatomic,assign)BOOL isFirst;
-(void)connectToHost:(NSString*)host onPort:(uint16_t)port;
-(void)disConnect;
-(void)writeData:(NSData *)data;
-(void)didConnect:(NSArray *)proxyServerList;
-(BOOL)isConnect;
+ (SocketTelecom*)sharedManager;
@end